Fixed version and preifx being overridden when mounting API.
remove unnecessary attr_writer

because we already have attr_accessor