fixed bug with the extra space on the right