Debugging issues with (error)