Fix for automapper exception