fixed a bug that results in a unlock a wrong plane