Fixes the bug of recompilation

Issue: #48