prevent undefined error & remove unexistent function
assigned to @sdarocha
merged
mentioned in commit 597ec394