Fix invalid lua output
Improve schema colour parsing