Fixed numerous bugs (Josh Dong)