issue 1830 fix

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

issue 1830 fix