Fixed a bug where $user on line 204 was not defined.