I guess there was some weird character error. What I did was copy-paste the example from FAQ and then just replaced the relevant parts with your code. It seems to work fine.