EditTask issue fix

Fix for Posttask and EditTask