Fixed how to read motion file