fix define case