Resolved the error i.e. now working for id >= 10