Fixing bug

https://bugtracker.noterik.com/view.php?id=2828