Fixed AVM + activity_main bug