fix for appfog crash