fix relier bugs