Fixing issues with code directive