Fix compatibility bug and update readme