Correction in margins

Gave error for features too close to border