fixed crash bug from missing semicolon