Added code to handle Chrome bug that was causing an 'Internal Server' error