Fix bug where page can't add task properly