Fixed loading, syntax errors, a bug