removed another if before loading theme