bug lol

works flawlessly after this change