Fixed dependency checking