fixed mouseSample compile errors