Fixed yet another stupid bug