0.3 compatibility
ugly patch for a julia bug