Fixes a space deletion error