fixed bug with card form rendering