fixed a bug in r90th