Fix error when persistent_warnings is been used on engine