Fixed bug in RAW dependency check