Fixed bug with detailpanel