Better error handling. It should never happen, but its better.