That should work.

Is it not returning the correct result?