fix bug with case