fixed issue with dim