fix error: calling for non-static method