fixed issue with css attribute for trap field