Fix bug in form shortcode