Are you still looking for the solution ?Please share your complete code of that file where you used above code.