bug fix removing unnecessary space