mapfishapp: fixed coding horror