fix locks