Fixed dojo 1.8 vs 1.9 changes