fix bug in which the check spacing wasnt working correctly