try to fix lua errors at start