Fix initialization and clean up spec directory.