Fixed issue with no next/prev button causing crashes