fixed empty space bug