Fix to append hash if no hash yet