Solution for issue #3390

https://github.com/spree/spree/issues/3390

Two lines and problem solved.