bug to fix on sub