fixing spaces on template