Debugging Some Errors