Fixes #1 getdelta retruning invalid input error