Fixed bugs

Removed error checking line