fixing margin error