fixing default gradient