bug #4589 Can not add new procedures

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>