alert when setPreps failed; fix error in old safari which cannot rewrite css