Fixed Bug with Random