Minor fix and refactor
Merge pull request #48 from nsue/refactor-onUpdatePaddlePosition

Minor fix and refactor