fix page crash on position being empty