fixed bug that was created in recent commit