Fix bug caused by idiocy