Fixed bug that locks things up on ajax fail