Hunting down a nasty R2014a bug