Removed wrong action and unnecessary console logs