Use g_return_val_if_fail instead of g_return_if_fail, as the function now