Assigned proper types to actions as they were not correct