Removed alert() on error