Fixing type mismatch.