Márquez pleased to get through difficult qualifying