Fixed an error in push method