Fix #34

Fix #34
See http://plnkr.co/edit/IjH45qqdMALeK9GcmA3V?p=preview for the fixed
plunker