Fixed a silly bug. Looking for a better way to do this