fixed bug in push endpoint