Fixed error mapping.