clear ordered groups array when closing a project (thanks to Jano Svitok)