Resolved the issues which caused the application to crash when interacting with an overlay