I do not know there is a bug while using rownum.

Try to use < operator with rownum.

First of all it is not a good idea to use rownum in insert statement.