fixed for wordpress 3.5