Fixed lamp not being updated properly
Fixes #513