fixed few errors resulted from shadows changes