Removing redundant border