Fix bug and add check action