fix error on development or test environment with rake