fix short code bug