fix exiting the snippet by pressing tab