some bugfixes for perception

some bugfixes for perception