FlyCam disabled and enabled again

Hello,

when I disable my flyCam and enable it again, it works, except for the mouse pointer. When enabled again, it remains visible. How can I fix this?

inputManager.setCursorVisible(false);