Fixed compatibility issues.

Signed-off-by: magicshop <eunyoung@neuro.duke.edu>
Signed-off-by: Andrew McKinney <mckinney@neuro.duke.edu>