Fixed entity hierarchy for lighting so that they are transformed correctly