Solved small error that i introduced when implementing security aspect where overlay could not be activated again