fix incorrect offset and pmouse