Changed compute-effective-slot-definition to correctly copy the