fix cap with precompile