Fix element page bug