Add missing newline at end of file
Fix side calculation precedence bug