Fixing bug with minus margin