See the fixme in mainframe class, error on eventListener