Attempted to fix bug. Not debugging in console because I still need to figure out how to do that