Update perception_synthesiser.py

fixed a few bugs