fix bug for realx