fixed bug i created because i was stupid