Not sure what's wrong with it, but I moved it into an `if else` structure to get rid of the error