Bug fix

	Credits: Talyor Meares identified the bug