fix lock margin