fixed bug, i know this is a terrible way to do this but... no real excuse