fixed struct of lock