Fixes a very bad bug