App Engine ref fix