Fixing bug resulting in 500 Server Error