issue 1830 fix

https://github.com/sonata-project/SonataAdminBundle/issues/1830 fix
Merge pull request #3 from lostedboy/patch-1

issue 1830 fix