fixed bug which slowed down performance