fix some BA lua errors