1. fix crash while using consts