I just contacted the Mathworks group and they were able to fix this: It's a bug of version 2014b, and they have a patch for it:
https://www.mathworks.com/support/bugreports/1133258
Just want to post the answer here in case other people have the similar issue.