Type fix. Forgot that this can return an error