issue 1830 fix

https://github.com/sonata-project/SonataAdminBundle/issues/1830 fix