fixed plugin code...