fix sprite coord calculation (fix issue #2)