Fix loader condition