Bugfix on shadow rectangle