fix right() bug