Fixed bug issue 187

Fixed issue https://github.com/avalanche123/Imagine/issues/187
![test](https://f.cloud.github.com/assets/1916111/172228/612890ea-7ab5-11e2-80d4-fe9eab75fc12.png)