fix bug in readNii.m