Fix unnecessary gem dependencies problem