Fix bug on onCreateError